﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GetServiceReference;

public partial class ProductDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string IDitem = Request.QueryString["Id"];
        if (IDitem.Equals(null))
        {
            Response.Redirect("Default.aspx");
        }
        else
        {
            Guid itemID = new Guid(IDitem);
            GetItemServiceClient gic = new GetItemServiceClient();
            Item itemDetail = gic.getItemByID(itemID);

            lbName.Text = itemDetail.ItemTitle;

        }
    }

    
}